package com.ktjy.example.example01To02;

import com.ktjy.example.example01To02.entity.Pet;
import com.ktjy.example.example01To02.service.PetService;
import com.ktjy.example.example01To02.service.impl.PetServiceImpl02;

public class Main {
    public static void main(String[] args) {
//        PetService petService = new PetServiceImpl();
//        Pet pet = new Pet();
//        pet.setName("小土豆");
//        petService.save(pet);


        PetService petService = new PetServiceImpl02();
        Pet pet = new Pet();
        pet.setName("小土豆");
        petService.save(pet);
    }
}
